Adding loss functions file