Added a snippet and some comments