logic part 1