Modelling Objects as Hybrid Automata