Implemented score functionality