second part of latest homework