Solved first 3 problems