Title: From Metrical Theory to Optimality Theory