init week3 assignment: Pattern Recognition