Added constructor.

Signed-off-by: cocolekat <cocolekat@gmail.com>