writing psuedo code