Start with coding for generating a regular pattern