2 ways by which muscles are attached to bones