Support code for homework 1 from the website