Added feature for working with lists, and added its test