Leifs version of Lab3