Solved first four questions