strting to tackle this problem
added problem 10