Some extremal problems for certain families of analytic functions I