Adding some features to the packages class. Adding a shared packages argument.