adding methods homework and ND arrays homework