Simulation of A Sliding Window Protocol done in Ruby