first version of scoring function written in Functionality-Test-Local