day7 and 8 code