adding pattern loader class