basic structure of paxos