Function inside function to show value