This is a sample solution for homework 1. This sample passes all tests.