Study of the period function of a two-parameter family of centers