Added factory method example of adding graphic elements.