implemented method getArea from Piston class