what years did kennedy serve as president?