Term project for pattern recognition