converted indentation to spaces and added closing curly brace