adding the fields to the innerclass.
added the first constructor in the inner class.