refactors designpatterns to patterns