fixed add function
Merge pull request #10 from y-gagar1n/master

Add function is not working properly