initial commit of pattern_to_number