Nesting if statements finished