logic 1 & 2