removed unnecessary loop and added wrappers around solution for task 3