add existing code in atm and calculator directories