using namespace std and function types