simple solution to task1