using vectors for the cosim