adding appledoc code snippet