Working demo
Working version with api