Implemented Logic class and made a little change in Logic-Interface