Create score calculator class