test cases added
debug statement added
test cases for the combinations