almost finished writing up problem 5
wrote up solutions