set up the basic methods and variables of Canvas, Window, and Framework