separate example from lib