Issue #5 Combine categories in algorithm