finished stack class, added the beginning of the list class