add home work 1 and fix the bug that cause the metric gap with the example output