Creating package factory and class emFactory