Here's the meat of the app