Adding all logical operations