This is the final code for our group project