pratice for add machine functionality