This is my attempt to write the code examples given in the book 'Programming Collective Intelligence' by Toby Segaran in Scala