initial calculator code