xuanloc implement extra credit