layering the scripts as expected by the assignement