Updated the sample to 0.5.0