DB lab1. Generator