Solved first part.