Writing a custom loss function

Blabla