handling errors in methods
declaring simple arrays and outputting them like a boss