Second Computer Science assignment done from James.