DB lab2 working prototype