add clear() function. It works only in UNIX in terminal