starting to work on optimization with arithmetic expressions