added solution to last exercise