Added sketch with returning code recognition

Sketch including returning code recognition