added finitiy option
added example