adding last_week and next_week functions

adding last_week and next_week functions