Fixed syntax errors and corrected indentation