Create all classes, completed the code in AlgorithmService.class