use constructor to initialize