Scopley programming challenge