Added Patterns and related programming problems