getData

Added the getData function