My proposed solution to the second assignment