an attempt to learn sdl