added composite? and prime? methods