Added factory example