Initial crack at completing the second assignment