Uses exports

The if statement is correct but I'm not sure of the else statement.