updating homepage code samples