clean up code; add one example