Adding grammar object