Tasks and patterns