Commands API Tutorial and sample extension