Integrating some sample code.