homework overload function and function template