Homework3 (partialy ready)