Hometask1: list class & stack calculator