Fixed the grammar to allow syntaxes like '[].foo' and '{}.bar'
Added various functions
Added another example