added class that fulfills final project requirements