adding default array argument to constructor