redesign class and multiple application