Class LastFunction