add dice Class and functions