taking parameters from console