working on "getData" implementation, which was used in the previous samples, too