added patterns demo