Three scala exmaples