added basics of logic again