Deleted redundant function in exercise1.