Completed sample code