Curves on surfaces and surface of revolution