added solution of an exercise