Achieved function calculateScore() in workshop-Controller.
Refactoring.