add spec and initialize method for List class