building up stucture for the package