write the construct module.
construct function.