added input.cpp