cost classification by function - Search