First approach for ProgAssigment 2