Introduce named variables

Fixes #1