if statements and lots of thinking