Created a modular structure to the api classes.