codes from spring in action