now handles begin
added some primitives