claryfied code example