ObjWithScore class