- added installed package class
- added logic to determine if the package is already installed