Writing reusable code - eustad