implemented while statement