Added new primitives demo code