hw3 - everything working