Added only acept +ve integers for capacity