added solution to problem12