removing spring from this sample code