Updated: First working implementation

I got it!