Dynamics of a two prey and one predator system with indirect effect