Added new function loss01 (not complete yet).