arranged Code of three files