he learned sword-fighting and riding , swimming and diving , how to shoot with the bow and play on the recorder and the theorbo , how to hunt the stag and cut him up when he was dead , besides cosmography , rhetoric , heraldry , versification , and of course history , with a little law , physic , alchemy , and astronomy .