Task 9 - part of raft protocol: logs replica