sample android project to show how to refactor legacy code