added more inner functions examples