Nit: remove { } from the for loop as its single statement for loop.