simple code for organizing through file input