shorter version of challenge 05 solution