#7: code for user to add books