integrate connections inside the controller initialization; and add some examples