Solved first two coding problems, but unable to compile.