A model of learning for simple repeating binary patterns.