assignments for pattern recognition