linear mass spring example