Added solutions for #9 and #10