Initial code for scoring