3rd commit

added the if, else if, else statement.