Added factory to make easier the creation of elements