implement calculation in literals