Code written for a programming challenge