First buggy but worked version :)