added second visit encounter implementation example