insatiable enterprise exercise; refactoring of previous code