A self-study in scala and RAFT