Added views in scala