write function for Dagger. Builder class.