Converting Field.java into an abstract class and creating all the
required subclasses