finished Cylinder class with its tests