update with package installation and new class definition