Code for RST for cse100