Lab 6 skeleton pseudocode