Third in-class exercise for RefactorU week 1