First working version with four slots