Using beveled sticks they marked these records into clay and then stored them for later reference, along with libraries which also contained the works of scribes written on subjects such as grammar, mathematics (they used both decimals and fractions), treatises on medicine, astrology, prayer, history, law and even literary forms.