Program defining loss*