Nick needs one more class to complete his schedule. There are 5 writing classes, 3 history classes, and 4 mathematics classes that can fit into his schedule. If Nick chooses a class at random, what is the probability that he chooses a history class? Give your answer as a fraction.