added solution for challenge 3