changed constructors and added new class file