added and tested contains list function