Extend snippet class