updated regression example and error metric