lab5.1 and 5.2 re-post