Define example, refactor factories