cleaned up my txt file and final solution