An investigation into the formation of squats in rails: modelling, characterization and testing