This is for my pattern recognition class.