initial version of HW4