added two new code samples