organized each by example type
added if statements