Fragments example from John Purcell's Learn Android 4.0 Udemy course (with tweeks).