modify class7/ex2-5:31-34 fruit method