added solution for refactor challenge