using both the direct and traditional methods. 
Direct method: