version of homework 2 and 3 without action of the button 9