homework_3.cpp