Code for Lab 3 (CS677) : Concepts: Replication, Fault Tolerance and Cache Consistency