Some arithmetic ops in scala