A form based factory pattern demo