Fixed typos and set seed to for reproducibility