You should fix this.  Put val in front of your arguments and they will become fields.  You are making a class where every field is stored twice.