Fixed all test cases' bugs and created calculator example.