added snippets for instance and class methods