adding structure to the code and decoupling services etc using separate file to inject resources