commenting
adding scoring function