gambler model and basic webpage