Implement list set function