Bob exercise | 2nd iteration