Implementd scalar multiplication, and the identity method. Also provided testing for these functions