Code creating using the instructional material on www.inventwithpython.com