Simple program to calculate the area of a set of rectangles defined by start/end/height