reworked stucture for daily code from class