#2 added dependency and creating tables