Finished simulate function and wrote get_primer function