move get_a and get_b to their own classes