refactors code according to solutions