Updated Code after indentation