Calculating Area and Perimeter of Squares