renamed dirs and problem 2 ruby solution