getData is now functional (and untested!)