added date and nspire_attr function