added a sample function to ffbs.jl