Better names for a and b

Replaced the names of a and b with more indicative names.