implemented stack functions with file input and stack responds well to using char -MM