Added comments and made Graphics' inheritance private