You hang an object with a mass of 0.5kg on a spring, and the spring stretches 0.1m. If the stiffness of the spring is 50 N/m, what is the elastic energy stored in the spring?