added multi backgrounds sample code