doing assigment 6a