create() function for creating list objects