Created Logic class