working code of the project in one file