class based pkg