Function machines

where appropriate, interpret simple expressions as functions with inputs and outputs.