logic cheat sheet