put getch and ungetch in header file