added sample file with function