added instances of classes and inputs array