Mass spring problem explanation