commit the initial code of design pattern