Added various exercise methods to directory.rb