add oldschool factory example to contrast to spring way