It would be better if some more relevant examples discussed in the class related to design patterns .