implemented package constructor according to the design. issues remain
to fix.
Implemented the constructor according to the design. some issues remain to be fixed.