added drawGeometricObject method