added delegate method to example