text output and shared preferences are implemented