refactoring and creating smaller class digrams for each component