Added roller coaster function that passes test