Implemented all simple list functions.