implemented printing & scalar multiplication