Some example code for spring