Implement getData method