submitting solution for challenge 6