Created method and indent code