combining all code in just one file