start to code functions to make graphics