many composers wrote pieces which are examples of theme and variation. sometimes the theme is one they made up, at other times they took a theme that another composer had already written and then made variations on it.