solution to challenge 6