The 4th assignment from the Programming Tools and Languages I class