Initial solution to problem 2 and associated Makefile.