Fixed Lab2 so it works, not very fault tolerant though