Learning how to handle Graphics object in OOP