Determine which of the following expenses related to a building would be classified as a capital expenditure.
a) Routine maintenance
b) Roof replacement
c) Painting the walls
d) Installing new carpet