Started coding the tempo machine