Sample code for the study purpose