added in homework before modifications