complete homework 8 using overloaded methods