I have used exactly the sample code. But getting some error. Picture is attached below. 