Minimal implementation of list class.