finish exercise r-1.1