Added all the logic blocks

Added all the logic blocks