Patterns in zeros exercise