Reordering sample code for puzzler #1