Organized folders, assigned the functions to backend.rb and the console interface to console.rb