Calculating Perimeters and Areas of Shapes