my  implementation of  3rd year  52359 graphics class