added permissions and ex3-4