Challenge solving assignment 1