nesting if statements

finished