added scoring function for subchallenge1