adds functionality to determine area of rectrangle