coursera scala with trash