Fixed the errors and indetation issues