code samples for mobile first book