Initial implimentation of scalar class