Changed pattern creator class