updated ex6, returns 19 possible solutions