Using new API in samples
Negative graph bug was fixed