In the following we shall show how to extend the class of Riemann integrable functions with the class of functions integrable in the improper sense. The extension is made in such a way that the same procedure can be applied to the class of Lebesgue integrable functions.