update example to include get email