Added Apache License to both examples