When John F. Kennedy took office he believed his most urgent task as president was to do what