adding pyramid pattern