have matrix, it prints, working more logic