Big changes: get rid of the clock class
Make the Master and Slave classes extends Thread and generate the
actions for ActionHandler class