Filipinos were educated at home by their mothers and trained in practical skills by their fathers before the arrival of the Spanish. There were over 100 languages spoken among distinct ethnic groups. The Philippine alphabet was called baybayin and was written from left to right. Filipinos had both oral and written literature and played various indigenous musical instruments. They engaged in agriculture, fishing, mining, and trading both domestically and abroad before the Spanish introduced formal Western-style schools.