Simplified sample code