create loader class