This is the code that Rafy and I wrote on our first lesson.