added quad functionality to the geometry class