Added soltion for problem #10