Extract Calculator and scoring code