Moved primitive definition to a single file. Add more primitives.