function analogies