simulation problem a