Adding extract method example