Gave the outline for the solenoid if statements