refactored scoer method into scoring class