Started on drawing function