working on snippet class.