Starting to use templates inheritance to avoid code replication