Modified to add toString for Scala Worksheet testing. Also, added more details around the Unit implementations for the different concrete data types.