Added console interface for calculator