samples codes written by me.