Wrote Draw() function