Turning surf into class