Adding sizer, finishing code copied from book for Scala day 3