1st attempt for tasks 1-4