creating first resource component