This is for the second part of the course project.