Add some primitives.

Relevant to issue #46.