Solved first 3 exercises