Creating, appending, and removing elements