make class for interact with sdl