lab1 work from class, parsed data and imported rectangle