first two challenge problems