move initialize function and remove extra lines in month class