code and result for oscillating wave experiment