Identify the two ways in which joints can be classified?