#84 refactoring for create algorithm controller, using constructor instead of create method