finished coding part two