add some code about small bit scala