Example and refactoring

Added small example i commit.

Commited files can be downloaded as an android studio project.