Distributed systems homework 1