added Afshins solution to sketchpad