Started base code from Google FlipCard tutorial