This line is a duplicate. You probably meant to define the val parameter.