Exrcises solved.