clustering example from original repo