First working version, but with very limited functionality