patterns part 1