Added Inner function and test

Is this the same as the comment above (to change the ans field to want)? Or are you suggesting that I somehow rename []struct{}