Did the right thing with overloading.
Solved homework