Water Hammer Theory Explained