adding result variable

Added the result variable totalArea and defined it as height times
width.