first attempt for calculator