Solved problem #5