Code formatting as per style guidelines