Firebase sample code