advanced sample app