Solution to ArcTouch challenge