Starting Week 2
Moved intent into a function and called it. Still working