연습문제5-7: add position list and class