added solution for exam