How to Write an Apple Program