Got the general methods for problem 8 and still looking at problem 5