Using List instead of ArrayList in the method signature + comments added