This is an extension from sample project of FragmentBasics from Android developer website