Update lab1

v1.3 (purge as a function)