Module Algorithm Exercise