Lab3 extended part