So i'm reading the Berkley review physics book and it says that potential energy for simple harmonic motion is the elastic potential energy because gravity does not play a role in horizontal movement. If the spring is vertical however, say it was hanging, would gravity play any role here, or would potential energy still be the elastic potential?