One of the things you do when you program is think logically