Finished Chapter 9 excercise for fields