refactored Zebra example