DBM homework 1