// Go through the stack overflow code to determine the best solution