homework finished
final version