simple logic structure