samples and patterns