subject=beach, here means that for each beach (a Class variable) we will treat the intercept is from a distribution, that means there is variability between two beaches.
Just like in clinicla trial, we model the longitudinal data of many patients, subject=patientID, means that each patient intercept may be variable.