basic solution to challenge 8