8 Define, evaluate and compare functions