Which revision fixes the dangling modifier in this sentence?



While walking to school almost a mile in the wet, heavy snow, the weather was miserable.



While I was walking almost a mile to school, the weather was miserable, with wet, heavy snow.



Almost a mile in the wet, heavy snow, while I was walking to school, the weather was miserable.



While walking to school almost a mile in the heavy, wet snow, the weather was miserable.



The weather was miserable while walking to school almost a mile in the wet, heavy snow.