Added first version of SDL implementation