basic scala can template