How to add quantity property?