Factory method exercises.