simplified nbd for my written test project