ashby's homeostat implemented in ruby