Used lambda expression (had to update to java8 first)