Finished for homework#2