sample code for SYSC3020 lab