Working version

First working version, rewrote