cosim example