added basic scoring functionality