start of lab2, parses commandline input