1st round code for orientation assignment. Need to evaluate outputs