To investigate the outcome of simulator-based learning 20 students were randomly allocated to one of the two conditions and undertook two scenarios ( anaphylactic shock and myocardial infarction ) , whereby the theoretical lessons were given either before or after the scenarios .