the 3rd part of hw3