basic snippets model and controller