Fixed indentation and added semicolons