added design based class and removed logic based

The GUI does not work with any input now. The output is two row console