made area of shapes program more functional