partially complete the class

note: [0] * m * n will create n copy of a list with length m. thus the
set function will set the corresponding element in each list at the
same time.