added BroadCast receiver to sample