#7 implemented quani functionality part.1