Structural Mechanics: A unified approach