worked a bit on problem 14. sleepy