creating design patter structure