Added checkout method to Repository class.