sim class

first version of Sim class