update snippets

1.add class extension
2.add alloc init
3.add category