finished codingbat exercises part 2