added SafeArray sample, formatted