Add Flatten Solution