Updated Example to include the new Extension API.