Hermite-Hadamard type inequalities, trapezoid type inequalities