ARC support + removed unneeded round()s
improved demo