digit + calculator encapsulation stuff added