Homework#6 ver1