What are the basic functions of muscle? How does the structure of cardiac, smooth, and skeletal muscle allow it to preform these functions?