done in commandline ruby