Calculator implementation in multiple languages