made progress on psuedo code