added ends with tests
Merge remote-tracking branch 'origin/master' into calculator