Added task 2 and some methods.