code samples for aat training