Added Logic class

Forgot about logic before