added example and extracted extensions in separate files