Ajusting Techniques, applid the method factory pattern and insert to controller two method for prioritization.