changed index to provide solutions or not plus added tests for both