remove spaces from input
created the primer document
added paren wrappers