finally wrapped in a function.
declarative eg.
declarative sample.
sorting tut updated.