Prince wrote his first song, "Funk Machine", on his father's piano when he was seven. His parents divorced when he was 10. His mother remarried to Hayward Baker, with whom she had a son named Omarr; Prince had a fraught relationship with Omarr, to the extent that it caused him to repeatedly switch homes, sometimes living with his father and sometimes with his mother and stepfather. Baker took Prince to see James Brown in concert, and he credited Baker with improving the family's finances. After a brief period of living with his father, who bought him his first guitar, Prince moved into the basement of his neighbors, the Anderson family, after his father kicked him out. He befriended the Andersons' son, Andre, who later collaborated with Prince and became known as André Cymone. He attended Minneapolis's Bryant Junior High and then Central High School, where he played football, basketball, and baseball. He was a student at the Minnesota Dance Theatre through the Urban Arts Program of Minneapolis Public Schools. He played on Central's junior varsity basketball team, and continued to play basketball for fun as an adult. Prince met songwriter and producer Jimmy Jam in 1973 and impressed him with his musical talent, early mastery of a wide range of instruments, and work ethic.