// as not to use **, we changed the functions into type int, so we could return the value we wanted (array)