he caught the rough edge of the hole and hung there for a few seconds , getting the swing of his bod ) 1 under control , then flexed the muscles in his upper arms and shoulders and pulled himself up .