Create a record constructor.

Closes #6.