Wrote list functionality #3