Identified a better way to instantiate class