first attempt at task 2