Made Graphics into a class