BTH assignment 1