create raise and yield sample code