Worked more on getData function…making progress