An extension of the basic functionality theory for the λ-calculus