if else statements assignment, all tests passing