Implement naive calculator