cat.c all basic functionalities present