Added add function for list, also testing