Added Template pattern to Todo