started implementing problem 11