solved problem 3
attempting problem 4, not working yet.