Added combinations code