Calculating the Area and the Perimeter