Fixes #1. Implemented right-associativity for exponents