refactored HomeWork part1.
added homeWork part2 ( array with POJO objest)