added simple code for drawing elements onto the screen