implemented computeAnd for Value and added tests