class snippet