a sample code for try