Week 2 workbook ported to Python 3