"n" represents an index that starts from 0