Add function reading within function
Add a few examples