working version.A bery basic one thoough