resolving code tasks part 1