Basic scala cookbook