Added a simple fromList function