Fixed example sample code