Update input.cpp
Add name_and_age.cpp
Add Chap3 examples