added interface and a test for global score variable