Split up the application into two parts and made the code a bit more OO