Understanding Solenoids: How Do They Work and What Is Their Purpose?