Saved Emma's solution separately.