A study of vertical vibration of ships