trying to solve issues in ex1