added scalar multiplication method scaleBy()