Solved #9 and #10