semester project first attempt - need to debug