updating solution for w6 challenge #5