lab1 code from Aj.nikom