proof of concept. pattern_generator generates a pattern based on 4 inputs