just some code created when learning Scala