rough draft of lab5.jsy