Flags homework

I couldn't seem to get throttle to work, so I used my own solution