Code for spring basics training