Class stuff Graphics and a little IO struggle