add list method and list class