for working through book examples