move finding combinations into separate class