implemented zScore and tests