Added getter and setter snippets
Fixed typo