After rejecting other ideas as either too rough or poorly suited to walled-in gymnasiums , he wrote the basic rules and nailed a peach basket onto a 10-foot ( 3.05 m ) elevated track .
Naismith wrote the basic rules and then nailed a peach basket onto a 10-foot tall pole .