Teaching the Nintendo generation to program