Formatted code according to google style guide