When granular materials are shaken, they exhibit various patterns. Researches on the pattern formation in vertically vibrated granular layers are explained and reviewed. This paper proposes an avalanche based model, which agrees with the well known dispersion relation which is believed to be satisfied by granular patterns. Very simple CML rules which produce stripes, squares, and worm structures are developed. Simulation results are shown to compare well with experimental ones.