added final solution 5_refactoring
added final solution