trying to get graphics class to work