updated to add custom metric example