implement history. still have bugs(in main)
implement history - fix shell bug in main