#7 implemented quani functionality part.4