added delegate example.