Updated idea workspace and re-implemented ch 6.1
fpinscala 6.2