wrote tests and completed new and list functions