Fragmented the code in various files instead of a single file