basic class conecction