Modern algebra and trigonometry: structure and method