add basic class for working with api