Separated the WEB code into two separate programs