fix Basics sample code