exercises from cs and math books