learning variables and printing