Hi
I am getting the following message :
parse error on input `= 
Code in question is attached .

Another general question on haskell :
I am not sure I understand correctly  the 'where' clause usage , I'll happily accept comments on the code

Thanks,
Lev