Added a function calculateScore() in workshop-Controller