fix nil class (line 13) command.rb and make CLI class