examples from BigNerdRanch Android class